<script>
	import {
		mapMutations
	} from 'vuex';
	export default {
		methods: {
			...mapMutations(['login'])
		},
		onLaunch: function() {
			let userInfo = uni.getStorageSync('userInfo') || '';
			if(userInfo.id){
				//更新登陆状态
				uni.getStorage({
					key: 'userInfo',
					success: (res) => {
						this.login(res.data);
					}
				});
			}
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style>
	@import './common/uni.css';
	@import './common/style.css';
	.uni-card {
        box-shadow: none;
    }
	/*
		全局公共样式和字体图标
	*/
	@font-face {
		font-family: iconfont;
		font-weight: normal;
		font-style: normal;
		src: url('./static/iconfont.ttf') format('truetype');
	}

	.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-shouji:before {
  content: "\e635";
}
.icon-favorfill:before {
  content: "\e64b";
}

.icon-favor:before {
  content: "\e64c";
}

.icon-xinwen:before {
  content: "\e6cb";
}

.icon-tuichu:before {
  content: "\e624";
}

.icon-guanyu:before {
  content: "\e652";
}

.icon-iconfontshuxie:before {
  content: "\e618";
}

.icon-shenhe:before {
  content: "\e663";
}

.icon-shezhi:before {
  content: "\e612";
}

.icon-quanping:before {
  content: "\e6d9";
}

.icon-suoxiaotuichuquanpingshouhui:before {
  content: "\e794";
}

.icon-qiandao:before {
  content: "\e61b";
}

.icon-tupian:before {
  content: "\e6c2";
}

.icon-jiaru:before {
  content: "\e60a";
}

.icon-share_light:before {
  content: "\e7e0";
}

.icon-appreciate_light:before {
  content: "\e7e1";
}

.icon-appreciate_fill_light:before {
  content: "\e7e2";
}

.icon-gongnengshetuanhuodong:before {
  content: "\e627";
}

.icon-shouye2:before {
  content: "\e6c7";
}

.icon-danxuan:before {
  content: "\e606";
}

.icon-saoma:before {
  content: "\e66a";
}

.icon-circle:before {
  content: "\e60c";
}

.icon-hengpai:before {
  content: "\e600";
}

.icon-shoucang:before {
  content: "\e641";
}

.icon-liulan:before {
  content: "\e614";
}

.icon-jiantou:before {
  content: "\e601";
}

.icon-wchart:before {
  content: "\e604";
}

.icon-login:before {
  content: "\e60d";
}

.icon-jiazaixin:before {
  content: "\e76c";
}

.icon-icons-btn-cancel:before {
  content: "\e67e";
}

.icon-chexiao:before {
  content: "\e82e";
}

.icon-shouye:before {
  content: "\e602";
}

.icon-yanjingguan:before {
  content: "\e769";
}

.icon-zhuce1:before {
  content: "\e69a";
}

.icon-sousuo1:before {
  content: "\e607";
}

.icon-arrowdown:before {
  content: "\e82f";
}

.icon-wenda:before {
  content: "\e662";
}

.icon-tisheng:before {
  content: "\e6f1";
}

.icon-technologylogy:before {
  content: "\e6e9";
}

.icon-yunjisuandashuju:before {
  content: "\e68a";
}

.icon-h:before {
  content: "\e66f";
}

.icon-yonghu:before {
  content: "\e6e6";
}

.icon-zhibo:before {
  content: "\e609";
}

.icon-xuexi:before {
  content: "\e603";
}

.icon-yonghu1:before {
  content: "\e61c";
}

.icon-yonghu2:before {
  content: "\e605";
}

.icon-shouye1:before {
  content: "\e65b";
}

.icon-quanbu:before {
  content: "\e696";
}

.icon-AI:before {
  content: "\e608";
}

.icon-icon---copy:before {
  content: "\e60b";
}

.icon-Java:before {
  content: "\e6f3";
}

.icon-icon-07:before {
  content: "\e616";
}

.icon-Null-data:before {
  content: "\e869";
}

.icon-zanwushuju:before {
  content: "\e74e";
}

.icon-xiala:before {
  content: "\e642";
}

.icon-wx-pay:before {
  content: "\e60e";
}

.icon-umidd17:before {
  content: "\e613";
}

.icon-icon--copy:before {
  content: "\e60f";
}

.icon-shezhi1:before {
  content: "\e610";
}

.icon-fenxiang:before {
  content: "\e648";
}

.icon-zixun:before {
  content: "\e694";
}

.icon-weixin:before {
  content: "\e62d";
}

.icon-weibo:before {
  content: "\e682";
}

.icon-QQ:before {
  content: "\e6f2";
}

.icon-shipin:before {
  content: "\e611";
}

.icon-shoucang1:before {
  content: "\e615";
}

.icon-shoucang11:before {
  content: "\e620";
}

.icon-bofang1:before {
  content: "\e656";
}

.icon--xichangxiegang:before {
  content: "\e617";
}

.icon--:before {
  content: "\e629";
}

.icon-dianzan:before {
  content: "\f250";
}

.icon-guanbi:before {
  content: "\e619";
}

.icon-zhibo1:before {
  content: "\e61a";
}

.icon-dayi:before {
  content: "\e826";
}

.icon-ceping:before {
  content: "\e61d";
}

.icon-lubo:before {
  content: "\e61e";
}

.icon-jiuyezhidao:before {
  content: "\e62a";
}

.icon-xinbaniconshangchuan-:before {
  content: "\e646";
}

.icon-zhibo2:before {
  content: "\e61f";
}

.icon-chuangguan:before {
  content: "\e657";
}

.icon-jiandu:before {
  content: "\e621";
}

.icon-kebiao:before {
  content: "\e62b";
}

.icon-left:before {
  content: "\e622";
}

.icon-ruanjianceshi:before {
  content: "\e623";
}

.icon-icon--:before {
  content: "\e625";
}

.icon-dashuju:before {
  content: "\e6a5";
}

.icon-rengongzhineng:before {
  content: "\e6ea";
}

.icon-zuzhijiagou:before {
  content: "\e638";
}

.icon-java:before {
  content: "\e626";
}

.icon-weifuwu:before {
  content: "\e6c0";
}

.icon-zuzhijiagou1:before {
  content: "\e691";
}

.icon-bianchengshibaobiao_icon:before {
  content: "\e66d";
}

.icon-right:before {
  content: "\f251";
}

.icon-kechengdagang:before {
  content: "\e63d";
}

.icon-shiting:before {
  content: "\e789";
}

.icon-kaoshidagang:before {
  content: "\e628";
}

.icon-kefu:before {
  content: "\e675";
}

.icon-kechengsvg:before {
  content: "\e6ae";
}

.icon-zhangjie:before {
  content: "\e62f";
}

.icon-up:before {
  content: "\f252";
}

.icon-yuanquan:before {
  content: "\e674";
}

.icon-bingtu:before {
  content: "\e6b6";
}

.icon-radio:before {
  content: "\e75e";
}

.icon-return:before {
  content: "\e718";
}

.icon-left1:before {
  content: "\edff";
}

.icon-right1:before {
  content: "\f253";
}

.icon-left2:before {
  content: "\e62c";
}

.icon-right2:before {
  content: "\f254";
}

.icon-yes:before {
  content: "\e62e";
}

.icon-bofang:before {
  content: "\e6fa";
}

.icon-caidan:before {
  content: "\e630";
}

.icon-shoucang2:before {
  content: "\e6b5";
}

.icon-zanwu:before {
  content: "\e631";
}

.icon-shezhi11:before {
  content: "\e671";
}

.icon-bzhan:before {
  content: "\e632";
}

.icon-youqinglianjie:before {
  content: "\e822";
}

.icon-wenda1:before {
  content: "\e633";
}

.icon-ziliao:before {
  content: "\e73b";
}

.icon-yuedu:before {
  content: "\e634";
}

	/*边框*/
	.b-b:after,
	.b-t:after {
		position: absolute;
		z-index: 3;
		left: 0;
		right: 0;
		height: 0;
		content: '';
		transform: scaleY(.5);
		border-bottom: 1px solid #E4E7ED;
	}

	.b-b:after {
		bottom: 0;
	}

	.b-t:after {
		top: 0;
	}



</style>
